#include <cmath>
#include <iostream>
using namespace std;
int main()
{
	double A, B, C, D, E, F;
	cin >> A >> B >> C >> D >> E >> F;
	double judge = A*E - B*D;

	if (abs(judge) < 0.00000001) {
		cout << "These lines are parallel to each other." << endl;
	} else {
		double x = (B*F - C*E) / judge;
		double y = (C*D - A*F) / judge;
		cout << "x: " << x << "\ty: " << y << endl;
	}
	return 0;
}